home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Ian & Stuart's Australian Mac 1993 September
/
clonecd
/
September 93.img
/
Archives
/
Utilities
/
Security - care
/
Protect
/
Tonto
/
settext.c
< prev
next >
Wrap
Text File
|
1991-11-26
|
689b
|
44 lines
/********************
SetText routines
Copyright 1987 Greg Coleman
Black Sun Technology
These sources may be freely distributed provided this notice remains intact.
********************/
#include <Controls.h>
#include <Dialogs.h>
#include <Quickdraw.h>
#include <Types.h>
#include "Tonto.h"
void
GetText(dialog,num,string)
DialogPtr dialog;
int num;
StringPtr string;
{
Handle line;
short type;
Rect box;
GetDItem(dialog, num, &type, &line, &box);
GetIText(line, string);
}
void
SetText(dialog,num,string)
DialogPtr dialog;
int num;
StringPtr string;
{
Handle line;
Rect box;
short type;
GetDItem(dialog, num, &type, &line, &box);
SetIText(line, string);
}